import java.util.HashMap;
import java.util.Scanner;

public class test1 {
    public static void main(String[] args) {
        // 哈希表?
        Scanner in = new Scanner(System.in);
        String s1 = in.next();
        String s2 = in.next();//被包含字符串

        System.out.println(getResult(s1,s2));
    }

    public static String getResult(String s1,String s2){
        char[] ch1 = s1.toCharArray();
        char[] ch2 = s2.toCharArray();

        HashMap<Character,Integer> map = new HashMap<>(); // <字符,数量>
        for (char c : ch1) {
            if (!map.containsKey(c)) {
                map.put(c, 1);
                continue;
            }
            map.replace(c, map.get(c) + 1); // 数量
        }

        // 判定
        for (char c: ch2) {
            if (!map.containsKey(c))
                return "No";
            if (map.get(c) == 0)
                return "No";
            map.replace(c, map.get(c) - 1);
        }

        return "Yes";
    }
}
